:root {
  --blue: #0b55d9;
  --blue-dark: #073db0;
  --blue-soft: #eaf0ff;
  --bg: #f6f7fc;
  --card: #ffffff;
  --text: #111827;
  --muted: #606779;
  --line: #e5e9f4;
  --green: #00955a;
  --red: #c71d2b;
  --shadow: 0 18px 45px rgba(31, 45, 88, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 85% 10%, rgba(18, 113, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eef2fb 100%);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 34px;
  align-items: center;
  min-height: 520px;
}

.hero__content {
  padding: 46px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero__text {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #006bff);
  box-shadow: 0 14px 28px rgba(11, 85, 217, 0.28);
}

.btn--ghost {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.hero__banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px;
  border-radius: 36px;
  background: linear-gradient(180deg, #ffffff, #eef3ff);
  box-shadow: var(--shadow);
}

.hero__banner img {
  width: min(100%, 260px);
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  margin: 12px 0 56px;
}

.summary__main,
.summary__item,
.feature-card,
.details,
.cta,
.mini-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(31, 45, 88, 0.08);
}

.summary__main,
.summary__item {
  min-height: 150px;
  padding: 24px;
  border-radius: 28px;
}

.summary span,
.mini-card span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.summary strong {
  display: block;
  margin: 9px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.summary small {
  color: var(--muted);
}

.summary__main {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #006dff);
  border: 0;
}

.summary__main span,
.summary__main small {
  color: rgba(255, 255, 255, 0.78);
}

.income strong,
.green strong {
  color: var(--green);
}

.expense strong,
.red strong {
  color: var(--red);
}

.section-head {
  max-width: 620px;
  margin-bottom: 24px;
}

.section-head span {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-head h2,
.details h2,
.cta h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: 28px;
}

.feature-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 24px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p,
.details p,
.details li,
.cta p {
  color: var(--muted);
  line-height: 1.65;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: center;
  margin-top: 56px;
  padding: 34px;
  border-radius: 34px;
}

.details h2 {
  margin-bottom: 16px;
}

.details ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.stat-cards {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 22px;
  border-radius: 24px;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.blue strong {
  color: var(--blue);
}

.cta {
  margin-top: 56px;
  padding: 42px;
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.cta p {
  max-width: 560px;
  margin: 14px auto 24px;
}

.policy {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.policy.is-open {
  display: block;
}

.policy__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.58);
}

.policy__dialog {
  position: fixed;
  right: 24px;
  top: 24px;
  bottom: 24px;
  width: min(680px, calc(100% - 48px));
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.policy__top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.policy__top h2 {
  margin: 0;
  font-size: 24px;
}

.policy__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.policy__body {
  padding: 26px 28px 34px;
}

.policy__body h3 {
  margin: 28px 0 10px;
}

.policy__body p {
  color: #3f4656;
  line-height: 1.72;
}

body.policy-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero,
  .details,
  .summary {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero__banner {
    order: -1;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 22px, 1120px);
    padding-bottom: 34px;
  }

  .hero__content,
  .details,
  .cta {
    padding: 24px;
    border-radius: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .hero__banner img {
    width: 180px;
    max-height: 180px;
  }

  .policy__dialog {
    inset: 12px;
    width: auto;
    border-radius: 22px;
  }

  .policy__top {
    padding: 16px;
  }

  .policy__body {
    padding: 20px;
  }
}

.policy__text {
  white-space: pre-line;
  color: #253044;
  font-size: 15px;
  line-height: 1.7;
}
